package com.sebastian.studies.ch9_Course;

import java.util.Scanner;

public class BMIexecute {

	public static void main(String[] args) {

		Course course1 = new Course("Java EE");
		Course course2 = new Course("C++ advanced");

		Scanner input = new Scanner(System.in);

		course1.addStudent("Sebastian Chlad");
		course1.addStudent("Aiko Miyake");
		course1.addStudent("Przemek Frackiewicz");
		course1.addStudent("Tomasz Chlad");

		course2.addStudent("Sebastian Chlad");
		course2.addStudent("Aiko Miyake");
		course2.addStudent("Ktos Ktosinski");
		course2.addStudent("Przemek Frackiewicz");
		course2.addStudent("Tomasz Chlad");

		String[] dupa = course2.getStudents();
		System.out.println("Course1: " + course1.getCourseName() + "\n" +
			course1.getNumberOfStudent());
		System.out.println("Course2: " + course2.getCourseName() + "\n" +
				course2.getNumberOfStudent());

		//print all student in course
		System.out.println("\n------print all student in course2-----");
		course2.listStudents(course2, dupa);

		course2.dropStudent("Ktos Ktosinski");
		//print all student in course2 after(!) removing one
		System.out.println("\n------print all student in course2 after(!) removing one-----");
		course2.listStudents(course2, dupa);
		System.out.println(course2.getNumberOfStudent());

		input.close();
	}

}
